<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="base.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="${ctx}/resources/js/public.js"></script>
<head>
<title>新增分类</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
	<div class="wrap">
		<div class="page-title">
			<span class="modular fl"><i></i><em>添加分类</em></span>
		</div>
		<table>
			<tr>
				<th colspan="2">一级分类:</th>
				<td align="right"><select id="firstSelect" onchange="showDetail(this.value)"><option value="5">根节点</option></select></td>
				<th colspan="2">二级分类:</th>
				<td align="right"><select id="secondSelect" onchange="showDetail(this.value)"><option value="">请选择</option></select></td>
			</tr>
		</table>

		<table id="listinfo" class="list-style">
			<tr>
				<th>编号</th>
				<th>类型名称</th>
			</tr>
			<tbody id="info-table"></tbody>
		</table>
	</div>
	
	<table class="list-style list-classification" id="add-table"
			style="margin-top: 30px;">
			<tr>
				<td style="text-align: right; width: 15%;">类型名称：</td>
				<td><input id="input_class" name="machine" type="text" class="textBox" /></td>
				<td><button type="button" class="btn primary" onclick="add()">添加</button></td>
			</tr>
			<tbody id="add-tbody"></tbody>
			<tr>
				<td colspan="3">
				<button type="button" class="btn primary" onclick="addType()">提交</button>
				</td>
			</tr>
	</table>
</body>

</html>